import com.fasterxml.jackson.databind.PropertyNamingStrategy
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue

fun main(): Unit {
    val mapper = jacksonObjectMapper()
    mapper.propertyNamingStrategy = PropertyNamingStrategy.SNAKE_CASE
    val data = """{"paid_type": 3}"""
    val obj = mapper.readValue<Param>(data)
    println(obj.paidType)
//    val value = objectMapper.readValue(data, object : TypeReference<Param>() {})
//    println(value)
    println("hello world")
}